package com.xinqi.modules.course.chapter.dto.req;

import com.xinqi.common.green.annotation.Text;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class UpdateChapterNameDTO {
    @NotNull(message = "章节id非空")
    private Long chapterId;
    @Text
    @NotEmpty(message = "名称非空")
    private String newName;
}
